package official;

import java.rmi.RemoteException;
import java.sql.SQLException;

public interface Server_Int extends java.rmi.Remote{
	
	public String menuPrincipal() throws java.rmi.RemoteException;
	
	public String creerPerso(String compte,String mdp) throws java.rmi.RemoteException, SQLException;
	
	public int login(String compte, String mdp) throws java.rmi.RemoteException, SQLException;

	public int dialoguer(int id, String message) throws java.rmi.RemoteException;
	
	public int deplacer(int id, char direction) throws java.rmi.RemoteException;
	
	public String attaquePerso(int id, int idPerso) throws java.rmi.RemoteException, InterruptedException;
	
	public String annulerCombat(int id) throws java.rmi.RemoteException;
	
	public String listeJoueurs()throws java.rmi.RemoteException;
	
	public String listePersos()throws java.rmi.RemoteException;
	
	public void enregistrerClient(int idJoueur, Client_Int client)throws java.rmi.RemoteException;
	
	public boolean existeDansCombat(int id)throws java.rmi.RemoteException;
	
	public void quitterJeu(int id) throws java.rmi.RemoteException;
	
	public String infosJoueur(int id) throws RemoteException; 
	
	public int getIdPieceFromIdJoueur(int id) throws RemoteException;
	
	public Server_Int getServerFromPiece(int id) throws RemoteException;

	
}
